<?php if (isset($this->userAll)) { ?>
    <h2><?php echo $this->translate('view_user_modify') ?> : </h2>
    <table>
        <tr>
            <th><?php echo $this->translate('view_user_firstname') ?></th>
            <th><?php echo $this->translate('view_user_name') ?></th>
            <th><?php echo $this->translate('view_user_email') ?></th>
            <th><?php echo $this->translate('view_user_modify') ?></th>
        </tr>
        <?php
        $users = $this->userAll;
        foreach ($users as $user) {

            echo '<tr>';
            echo '<td>' . $user['firstname'] . '</td>';
            echo '<td>' . $user['lastname'] . '</td>';
            echo '<td>' . $user['email'] . '</td>';
            echo '<td><a href="' . $this->url(array('module' => 'admin','action' => 'modify', 'id' => $user['id'])) . '">Modify</a> | <a href="' . $this->url(array('module'=>'admin','action' => 'delete', 'id' => $user['id'])) . '" >Delete</a></td>';
            echo '</tr>';
        }
        ?>
    </table>
    </br>
    <a href=<?php  echo $this->url(array('module' => 'admin' , 'controller' =>'user','action' => 'add')); ?>>Add a new user</a>
    <?php
}
?>